package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;

import java.util.List;

public interface ApArticleMapper extends BaseMapper<ApArticle> {
    /**
     * 查询文章列表，基于mybatis，手写代码
     * @param dto
     * @param type
     * @return
     */
    public List<ApArticle> load(ArticleHomeDto dto,Integer type);
}
